const getNews = () => fetch("/news");

cacheRequest(getNews, 1000);
function cacheRequest(fn, duration = 3000) {}
